package lv.accenture.jbcamp.ex07;

public class TestRunner {
	
	public static void main(String[] args) {
		HelloRunner r = new HelloRunner();
		Thread t1 = new Thread(r, "R1");
		Thread t2 = new Thread(r, "R2");
		Thread t3 = new Thread(r, "R3");
		t1.start();
		t2.start();
		t3.start();
	}
}

class HelloRunner implements Runnable {
	public static int count = 0;
	public void run() {
		for (int i = 0; i < 50; i++) {
			System.out.println((count++) + " - Hello #" + i + " from "
					+ Thread.currentThread().getName());
		}
	}
}
